<div class="am-u-sm-12 widget" style="margin:10px ;">
	<div class="am-u-sm-12">
		<form class="am-form tpl-form-border-form tpl-form-border-br" action="" method="get">
			<div class="am-form-group am-u-sm-3">
				<input type="hidden" class="car_use_id" name="car_use_id" value="{$item.car_use_id}" />
				<input type="text" class="am-form-field tpl-form-no-bg  car_use" style="line-height: 21px;" value="{$Think.get.company}" placeholder="点击选择公司/单位" readonly="">
			
				<!--<input type="text" class="tpl-form-input company" data-method="company" readonly="">-->

			</div>
			<div class="am-form-group am-u-sm-3">
				<input type="text" class="tpl-form-input" name="name" placeholder="乘客姓名" value="{$Think.get.name}">
			</div>
			<div class="am-form-group am-u-sm-3">
				<input type="text" class="tpl-form-input" name="phone" placeholder="乘客电话" value="{$Think.get.phone}">
			</div>
			
			<div class="am-form-group am-u-sm-3">
				<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">查询</button> {if $op == 'search'} {else/}
				<a href="{:url('add')}" type="button" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">添加乘客</a>
				{/if}
			</div>

		</form>
	</div>
	<div style="padding: 10px;" class="am-u-sm-12">
		<form id="form-table">
			<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>
			<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black am-text-nowrap">
				<thead>
					<tr>
						{if $op == 'search'}
						<th>操作</th>
						{else/}
						<th><input data-checkall="1" type="checkbox" /></th>
						{/if}
						<th>乘客姓名</th>
						<th>电话</th>
						<th>性别</th>
						<th>余额</th>
						<th>公务额度</th>
						<th>单位额度</th>
						<th>状态</th>
						{if $op == 'search'}
						{else/}
						<th>操作</th>
						{/if}
					</tr>
				</thead>
				<tbody>
					{foreach $list as $key => $item}
					<tr  data-id="{$item.passenger_id}">
						{if $op == 'search'}
						<td data-id="{$item.car_type_id}">
							<div class="tpl-table-black-operation">
								<a href="javascript:;" class="choose" data-id="{$item.car_type_id}" data-type="{:config('base.types')[$item.type]}" data-cartype="{:config('base.car_types')[$item.car_type]}">
									<i class="am-icon-pencil"></i> 选中
								</a>
							</div>
						</td>
						{else/}
						<td><input type="checkbox" /></td>
						{/if}

						<td>
							<a href="{:url('details',['passenger_id'=>$item['passenger_id'] ])}">{$item.name}</a>
						</td>
						<td>{$item.phone}</td>
						<td>{$item.sex}</td>
						<td>{$item.balance}</td>
						<td>{$item.business_quota}</td>
						<td>{$item.unit_quota}</td>
						<td class="am-text-{$item.state==9?'danger':'success'}">{$item.state==9?'已禁用':'已启用'}</td>
						{if $op == 'search'} {else/}
						<td>
							<div class="tpl-table-black-operation">
								{if $item.state == 9}
								<a href="javascript:;" class="startusing" data-method="startusing">
									<i class="am-icon-pencil"></i> 启用
								</a>
								{else/}
								<a href="javascript:;" class="tpl-table-black-operation-del forbidden" data-method="forbidden">
									<i class="am-icon-trash"></i> 禁用
								</a>
								{/if}
								<a href="{:url('edit',['passenger_id'=>$item.passenger_id])}">
									<i class="am-icon-pencil"></i> 编辑
								</a>
								<a href="javascript:;" class="tpl-table-black-operation-del delete-list" data-method="delete">
									<i class="am-icon-pencil"></i> 删除
								</a>
							</div>
						</td>
						{/if}
					</tr>
					{/foreach}
					<!-- more data -->
				</tbody>
			</table>
		</form>
		{if $op == 'search'}
		{else/}
		<div>
			<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs" style="margin: 2px;">短信发送</button>

		</div>
		{/if}
		<div class="am-u-lg-12 am-cf">

			<div class="am-fr">
				{$pager}
			</div>
		</div>
	</div>

</div>